﻿@using GSLMS.Entity
@using GSLMS.Entity.Enum
@model GSLMS.Entity.TB_APP_SPECIALINFO
@{
    Layout = null;
    var ddlFinalApprover = ViewData["FinalApprover"] as SelectList;
    var isLastAuditUser = (int)ViewData["LastAuditUser"];
    
}
<div class="pageContent">
    <form method="post" id="formGSpecailInfo" action="DianDang/BMAudit/bManager/GSpecailInfo?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogAjaxDone)">
    <div class="pageFormContent" >
        @Html.HiddenFor(model => model.ID)
        <p>
            <label>
                标题：</label>
            @Html.ValueFor(model => model.SPECIALTITLE)
        </p>
        <p>
            <label>
                类型：</label>
            @Html.ValueFor(model => model.SPECIALTYPE)
        </p>
        <p>
            <label>
                客户名称：</label>
            @Html.ValueFor(model => model.CUSTNAME)
        </p>
        <p>
            <label>
                项目经理：</label>
            @Html.ValueFor(model => model.SALESMAN)
        </p>
        <p>
            <label>
                所属部门：</label>
            @Html.ValueFor(model => model.DEPNAME)
        </p>
        <p>
            <label>
                贷款产品：</label>
            @Html.ValueFor(model => model.PRODUCTNAME)
        </p>
        <div class="divider">
        </div>
        <p style="width: 90%">
            <label>
                详细内容：</label>
            @Html.ValueFor(model => model.DETAIL)
        </p>
        <p style="width: 95%; height:85px;">
            <label>
                意见：</label>
            @Html.TextArea("Remark", new { style = "width:75%;height:60px" })
           
        </p>
        <p style="display:@(isLastAuditUser==1?"none":"inline");">
            <label>
                提交到：</label>
            @Html.DropDownList("toUser", ddlFinalApprover, new { @class = "combox", @selectedvalue = ""})
            @Html.Hidden("hidActiondo")
           
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="GSpecailInfo(1)">
                            同意</button></div>
                </div>
            </li>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="GSpecailInfo(2)">
                            拒绝</button></div>
                </div>
            </li>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="GSpecailInfo(3)">
                            退回</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
<script>
    function GSpecailInfo(action) {
        $form = $("#formGSpecailInfo");
        $("#hidActiondo", $form).val(action);
        if (action > 1) {
            var Remark = $("#Remark", $form).val();
            if (Remark)
            { validateCallback($form, dialogAjaxDone); }
            else {
                alertMsg.error("请输入意见!");
            }
        }
        else {
            validateCallback($form, dialogAjaxDone);
        }
    }
</script>
